﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="FlowerDetail.aspx.vb" Inherits="Macrography.FlowerDeatil" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" DataKeyNames="Img_Id">
        <Columns>
            <asp:BoundField DataField="Date_added" HeaderText="Date_added" 
                SortExpression="Date_added" />
            <asp:BoundField DataField="Cat_Id" HeaderText="Cat_Id" 
                SortExpression="Cat_Id" />
            <asp:BoundField DataField="UserName" HeaderText="UserName" 
                SortExpression="UserName" />
            <asp:BoundField DataField="Camera" HeaderText="Camera" 
                SortExpression="Camera" />
            <asp:BoundField DataField="Location" HeaderText="Location" 
                SortExpression="Location" />
            <asp:BoundField DataField="Img_Description" HeaderText="Img_Description" 
                SortExpression="Img_Description" />
            <asp:ImageField DataImageUrlField="Images" HeaderText="Image">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
        
        
        SelectCommand="SELECT [Img_Id], [Images], [Img_Description], [Date_added], [Cat_Id], [UserName], [Camera], [Location] FROM [Images_View] WHERE ([Img_Id] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Img_Id" QueryStringField="Img_Id" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <br />
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource2">
        <Columns>
            <asp:BoundField DataField="ViewerName" HeaderText="ViewerName" 
                SortExpression="ViewerName" />
            <asp:BoundField DataField="Img_Id" HeaderText="Img_Id" 
                SortExpression="Img_Id" />
            <asp:BoundField DataField="Comments" HeaderText="Comments" 
                SortExpression="Comments" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ViewerName], [Img_Id], [Comments] FROM [Comments2View] WHERE ([Img_Id] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Img_Id" QueryStringField="Img_Id" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    Add Your Comments<br />
    <br />
    <asp:LoginName ID="LoginName1" runat="server" />
    <br />
    <br />
    <br />
    <asp:TextBox ID="TxtCmmnt" runat="server" TextMode="MultiLine"></asp:TextBox>
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
        ID="BtnCmmnt" runat="server" Text="Comment" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
    <br />
&nbsp;
    <br />
     <asp:Rating  BorderWidth="1" BorderStyle="Solid"
    width="300" 
    Height="0" 
    ID="Rating1"  
    CurrentRating="2" 
    runat="server" 
    StarCssClass="ratingStar" 
    WaitingStarCssClass="savedRatingStar" 
    EmptyStarCssClass="emptyRatingStar" 
    filledStarCssClass="filledRatingStar"
    MaxRating="5" 
    >
    </asp:Rating>
    <br />
    Rating
    <asp:Button ID="RatingBtn" runat="server" Text="Rating" />
    <br />
    <br />
    Add New TagsSeparated By Comma<br />
    <br />
    <asp:TextBox ID="TxtNewTag" runat="server"></asp:TextBox>
    <asp:CheckBoxList ID="TagChkList" runat="server" DataSourceID="SqlDataSource3" 
        DataTextField="Tags" DataValueField="Tag_Id">
    </asp:CheckBoxList>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Tag_Id], [Tags] FROM [Tags]"></asp:SqlDataSource>
    <asp:Button ID="TagBtn" runat="server" Text="Tag This Picture" />
    <br />
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    &nbsp;&nbsp;&nbsp;&nbsp;
    </asp:Content>
